package com.ipay.wechat.util;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;

import com.ipay.redis.JedisExecutor;
import com.ipay.redis.JedisKeyPrefix;
import com.ipay.utils.SpringContextUtils;

@Component
public class TestUtil {
	private Logger logger = LoggerFactory.getLogger(getClass());
	/*@Autowired
	private JedisExecutor jedis;*/
	//@Autowired
	//private JedisKeyPrefix prefix;

	public void test() {
		logger.info("test");
		
		logger.info("prefix==="+JedisKeyPrefix.JEDIS_KEY_PREFIX_MOBILE);
		JedisExecutor jedis = SpringContextUtils.getBean("jedisExecutor", JedisExecutor.class);
		jedis.setValue(JedisKeyPrefix.JEDIS_KEY_PREFIX_MOBILE, "bbb", "1234");
		logger.info(jedis.getValue(JedisKeyPrefix.JEDIS_KEY_PREFIX_MOBILE, "bbb"));
	}
}
